//
//  TestViewController.m
//  JK_const_define_static_extern
//
//  Created by 王冲 on 2019/2/5.
//  Copyright © 2019年 JK科技有限公司. All rights reserved.
//

#import "TestViewController.h"
#import "UrlTest.h"
#import "ViewController.h"

static int b = 20;

@interface TestViewController ()

@end

@implementation TestViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    self.view.backgroundColor = [UIColor purpleColor];
    
    NSLog(@"url=%@",BASE_URL);
}

-(void)touchesBegan:(NSSet<UITouch *> *)touches withEvent:(UIEvent *)event{
    
    NSLog(@"x的值是：%d",x);
    
    static int a = 5;
    ++a;
    NSLog(@"%d除以4的余数=%d",a,a%4);
    if (a == 6) {
        
        a = 20;
        
        [self dismissViewControllerAnimated:YES completion:nil];
    }
   
}

-(void)dealloc{
    
    
}


/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
